package com.workman.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "演示",tags = "用来演示Swagger的一些注解")
public class HelloController {

    @RequestMapping(value="/hello",method = RequestMethod.GET)
    public String hello(String name){
        return "hello " + name;
    }

}
